package com.btr.uimeter;

import com.btr.uimeter.probes.UIMeterProbe;

/*****************************************************************************
 * A listener that is notified of new UIMeter probing events.  
 * @author Bernd Rosstauscher (java@rosstauscher.de) Copyright 2010
 ****************************************************************************/

public interface UIMeterEventHandler {

	/*************************************************************************
	 * Called to process a new event.
	 * @param producer the probe that generated the event.
	 * @param e the event containing the probing data.
	 ************************************************************************/
	
	public void processEvent(UIMeterProbe producer, UIMeterEvent e);
	
	/*************************************************************************
	 * Called when the UIMeter is shut down.
	 * This method can be used to cleanup on shutdown. Close files, release 
	 * external resources, ...
	 ************************************************************************/

	public void close();

}
